<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::tracking::HSVColorCoherence&lt; PointInT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1tracking_1_1_h_s_v_color_coherence.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::tracking::HSVColorCoherence&lt; PointInT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html" title="HSVColorCoherence computes coherence between the two points from the color difference between them....">HSVColorCoherence</a></b> computes coherence between the two points from the color difference between them. the color difference is calculated in HSV color space. the coherence is calculated by 1 / ( 1 + w * (w_h^2 * h_diff^2 + w_s^2 * s_diff^2 + w_v^2 * v_diff^2))  
 <a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="hsv__color__coherence_8h_source.html">hsv_color_coherence.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::tracking::HSVColorCoherence&lt; PointInT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1tracking_1_1_h_s_v_color_coherence.png" usemap="#pcl::tracking::HSVColorCoherence_3C_20PointInT_20_3E_map" alt=""/>
  <map id="pcl::tracking::HSVColorCoherence_3C_20PointInT_20_3E_map" name="pcl::tracking::HSVColorCoherence_3C_20PointInT_20_3E_map">
<area href="classpcl_1_1tracking_1_1_point_coherence.html" title="PointCoherence is a base class to compute coherence between the two points." alt="pcl::tracking::PointCoherence&lt; PointInT &gt;" shape="rect" coords="0,0,275,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a28cd18b4c68aa04df2f5cf31625f44a0"><td class="memItemLeft" align="right" valign="top"><a id="a28cd18b4c68aa04df2f5cf31625f44a0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a28cd18b4c68aa04df2f5cf31625f44a0">HSVColorCoherence</a> ()</td></tr>
<tr class="memdesc:a28cd18b4c68aa04df2f5cf31625f44a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the weights of the computation. weight_, h_weight_, s_weight_ default to 1.0 and v_weight_ defaults to 0.0. <br /></td></tr>
<tr class="separator:a28cd18b4c68aa04df2f5cf31625f44a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a280156248dca37d168901cdcc4812aa6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a280156248dca37d168901cdcc4812aa6">setWeight</a> (double weight)</td></tr>
<tr class="memdesc:a280156248dca37d168901cdcc4812aa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the weight of coherence  <a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a280156248dca37d168901cdcc4812aa6">更多...</a><br /></td></tr>
<tr class="separator:a280156248dca37d168901cdcc4812aa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a469386f8d9ba3d3a55f1d798b8279c76"><td class="memItemLeft" align="right" valign="top"><a id="a469386f8d9ba3d3a55f1d798b8279c76"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a469386f8d9ba3d3a55f1d798b8279c76">getWeight</a> ()</td></tr>
<tr class="memdesc:a469386f8d9ba3d3a55f1d798b8279c76"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the weight (w) of coherence <br /></td></tr>
<tr class="separator:a469386f8d9ba3d3a55f1d798b8279c76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d3d63b1db80bedf61b4ba9a20eb0f19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a2d3d63b1db80bedf61b4ba9a20eb0f19">setHWeight</a> (double weight)</td></tr>
<tr class="memdesc:a2d3d63b1db80bedf61b4ba9a20eb0f19"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the hue weight (w_h) of coherence  <a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a2d3d63b1db80bedf61b4ba9a20eb0f19">更多...</a><br /></td></tr>
<tr class="separator:a2d3d63b1db80bedf61b4ba9a20eb0f19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade3168cb42bb6800a0ea420f86276453"><td class="memItemLeft" align="right" valign="top"><a id="ade3168cb42bb6800a0ea420f86276453"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#ade3168cb42bb6800a0ea420f86276453">getHWeight</a> ()</td></tr>
<tr class="memdesc:ade3168cb42bb6800a0ea420f86276453"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the hue weight (w_h) of coherence <br /></td></tr>
<tr class="separator:ade3168cb42bb6800a0ea420f86276453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a368e554e6d48530d4101a5e75cb14747"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a368e554e6d48530d4101a5e75cb14747">setSWeight</a> (double weight)</td></tr>
<tr class="memdesc:a368e554e6d48530d4101a5e75cb14747"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the saturation weight (w_s) of coherence  <a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a368e554e6d48530d4101a5e75cb14747">更多...</a><br /></td></tr>
<tr class="separator:a368e554e6d48530d4101a5e75cb14747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a510002285e396fd01814778908733b49"><td class="memItemLeft" align="right" valign="top"><a id="a510002285e396fd01814778908733b49"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a510002285e396fd01814778908733b49">getSWeight</a> ()</td></tr>
<tr class="memdesc:a510002285e396fd01814778908733b49"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the saturation weight (w_s) of coherence <br /></td></tr>
<tr class="separator:a510002285e396fd01814778908733b49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab22fb7cbb1512c7b8e2cac3249dd76b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#ab22fb7cbb1512c7b8e2cac3249dd76b5">setVWeight</a> (double weight)</td></tr>
<tr class="memdesc:ab22fb7cbb1512c7b8e2cac3249dd76b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the value weight (w_v) of coherence  <a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#ab22fb7cbb1512c7b8e2cac3249dd76b5">更多...</a><br /></td></tr>
<tr class="separator:ab22fb7cbb1512c7b8e2cac3249dd76b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b407c51905e12144bfa90e9df8dd5b3"><td class="memItemLeft" align="right" valign="top"><a id="a9b407c51905e12144bfa90e9df8dd5b3"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a9b407c51905e12144bfa90e9df8dd5b3">getVWeight</a> ()</td></tr>
<tr class="memdesc:a9b407c51905e12144bfa90e9df8dd5b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the value weight (w_v) of coherence <br /></td></tr>
<tr class="separator:a9b407c51905e12144bfa90e9df8dd5b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1tracking_1_1_point_coherence')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html">pcl::tracking::PointCoherence&lt; PointInT &gt;</a></td></tr>
<tr class="memitem:aee2bec3b03c521c37e00b41bfd132709 inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top"><a id="aee2bec3b03c521c37e00b41bfd132709"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html#aee2bec3b03c521c37e00b41bfd132709">PointCoherence</a> ()</td></tr>
<tr class="memdesc:aee2bec3b03c521c37e00b41bfd132709 inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="mdescLeft">&#160;</td><td class="mdescRight">empty constructor <br /></td></tr>
<tr class="separator:aee2bec3b03c521c37e00b41bfd132709 inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70db425671ce0ddb22b09ff872e5512b inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top"><a id="a70db425671ce0ddb22b09ff872e5512b"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html#a70db425671ce0ddb22b09ff872e5512b">~PointCoherence</a> ()</td></tr>
<tr class="memdesc:a70db425671ce0ddb22b09ff872e5512b inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="mdescLeft">&#160;</td><td class="mdescRight">empty distructor <br /></td></tr>
<tr class="separator:a70db425671ce0ddb22b09ff872e5512b inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ce3cbddfda079fd01b07b7795b9baf4 inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html#a3ce3cbddfda079fd01b07b7795b9baf4">compute</a> (PointInT &amp;source, PointInT &amp;target)</td></tr>
<tr class="memdesc:a3ce3cbddfda079fd01b07b7795b9baf4 inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="mdescLeft">&#160;</td><td class="mdescRight">compute coherence from the source point to the target point.  <a href="classpcl_1_1tracking_1_1_point_coherence.html#a3ce3cbddfda079fd01b07b7795b9baf4">更多...</a><br /></td></tr>
<tr class="separator:a3ce3cbddfda079fd01b07b7795b9baf4 inherit pub_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aa3144d7fabca8fbe6b696c8456d14e7a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#aa3144d7fabca8fbe6b696c8456d14e7a">computeCoherence</a> (PointInT &amp;source, PointInT &amp;target)</td></tr>
<tr class="memdesc:aa3144d7fabca8fbe6b696c8456d14e7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the color coherence between the two points.  <a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#aa3144d7fabca8fbe6b696c8456d14e7a">更多...</a><br /></td></tr>
<tr class="separator:aa3144d7fabca8fbe6b696c8456d14e7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classpcl_1_1tracking_1_1_point_coherence"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classpcl_1_1tracking_1_1_point_coherence')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html">pcl::tracking::PointCoherence&lt; PointInT &gt;</a></td></tr>
<tr class="memitem:a2f88b097b07d6b2a3ad61a75c05802e3 inherit pro_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top"><a id="a2f88b097b07d6b2a3ad61a75c05802e3"></a>
const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html#a2f88b097b07d6b2a3ad61a75c05802e3">getClassName</a> () const</td></tr>
<tr class="memdesc:a2f88b097b07d6b2a3ad61a75c05802e3 inherit pro_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of the name of this class. <br /></td></tr>
<tr class="separator:a2f88b097b07d6b2a3ad61a75c05802e3 inherit pro_methods_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a7c7cba5259a5de96d1c0d468ef3a2199"><td class="memItemLeft" align="right" valign="top"><a id="a7c7cba5259a5de96d1c0d468ef3a2199"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a7c7cba5259a5de96d1c0d468ef3a2199">weight_</a></td></tr>
<tr class="memdesc:a7c7cba5259a5de96d1c0d468ef3a2199"><td class="mdescLeft">&#160;</td><td class="mdescRight">the weight of coherence (w) <br /></td></tr>
<tr class="separator:a7c7cba5259a5de96d1c0d468ef3a2199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62a2ceaf327d1d5b4c3410e1074c1fd4"><td class="memItemLeft" align="right" valign="top"><a id="a62a2ceaf327d1d5b4c3410e1074c1fd4"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a62a2ceaf327d1d5b4c3410e1074c1fd4">h_weight_</a></td></tr>
<tr class="memdesc:a62a2ceaf327d1d5b4c3410e1074c1fd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">the hue weight (w_h) <br /></td></tr>
<tr class="separator:a62a2ceaf327d1d5b4c3410e1074c1fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ea088c1142281709ec4d5dcf5f4bc0b"><td class="memItemLeft" align="right" valign="top"><a id="a8ea088c1142281709ec4d5dcf5f4bc0b"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a8ea088c1142281709ec4d5dcf5f4bc0b">s_weight_</a></td></tr>
<tr class="memdesc:a8ea088c1142281709ec4d5dcf5f4bc0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">the saturation weight (w_s) <br /></td></tr>
<tr class="separator:a8ea088c1142281709ec4d5dcf5f4bc0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4bbd2883c7108c28cd2d04a45d2c5c0"><td class="memItemLeft" align="right" valign="top"><a id="aa4bbd2883c7108c28cd2d04a45d2c5c0"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#aa4bbd2883c7108c28cd2d04a45d2c5c0">v_weight_</a></td></tr>
<tr class="memdesc:aa4bbd2883c7108c28cd2d04a45d2c5c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">the value weight (w_v) <br /></td></tr>
<tr class="separator:aa4bbd2883c7108c28cd2d04a45d2c5c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1tracking_1_1_point_coherence"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1tracking_1_1_point_coherence')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html">pcl::tracking::PointCoherence&lt; PointInT &gt;</a></td></tr>
<tr class="memitem:a02d4790985714fafdfa90bc9071fba9f inherit pro_attribs_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top"><a id="a02d4790985714fafdfa90bc9071fba9f"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html#a02d4790985714fafdfa90bc9071fba9f">coherence_name_</a></td></tr>
<tr class="memdesc:a02d4790985714fafdfa90bc9071fba9f inherit pro_attribs_classpcl_1_1tracking_1_1_point_coherence"><td class="mdescLeft">&#160;</td><td class="mdescRight">The coherence name. <br /></td></tr>
<tr class="separator:a02d4790985714fafdfa90bc9071fba9f inherit pro_attribs_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_types_classpcl_1_1tracking_1_1_point_coherence"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classpcl_1_1tracking_1_1_point_coherence')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html">pcl::tracking::PointCoherence&lt; PointInT &gt;</a></td></tr>
<tr class="memitem:ae557226c7e8b042366b0685367e3ea31 inherit pub_types_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top"><a id="ae557226c7e8b042366b0685367e3ea31"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html">PointCoherence</a>&lt; PointInT &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:ae557226c7e8b042366b0685367e3ea31 inherit pub_types_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6047c87547f5eccc1a037797b0e526ec inherit pub_types_classpcl_1_1tracking_1_1_point_coherence"><td class="memItemLeft" align="right" valign="top"><a id="a6047c87547f5eccc1a037797b0e526ec"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html">PointCoherence</a>&lt; PointInT &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a6047c87547f5eccc1a037797b0e526ec inherit pub_types_classpcl_1_1tracking_1_1_point_coherence"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointInT&gt;<br />
class pcl::tracking::HSVColorCoherence&lt; PointInT &gt;</h3>

<p><b><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html" title="HSVColorCoherence computes coherence between the two points from the color difference between them....">HSVColorCoherence</a></b> computes coherence between the two points from the color difference between them. the color difference is calculated in HSV color space. the coherence is calculated by 1 / ( 1 + w * (w_h^2 * h_diff^2 + w_s^2 * s_diff^2 + w_v^2 * v_diff^2)) </p>
<dl class="section author"><dt>作者</dt><dd>Ryohei Ueda </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aa3144d7fabca8fbe6b696c8456d14e7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3144d7fabca8fbe6b696c8456d14e7a">&#9670;&nbsp;</a></span>computeCoherence()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointInT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html">pcl::tracking::HSVColorCoherence</a>&lt; PointInT &gt;::computeCoherence </td>
          <td>(</td>
          <td class="paramtype">PointInT &amp;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PointInT &amp;&#160;</td>
          <td class="paramname"><em>target</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return the color coherence between the two points. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>instance of source point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>instance of target point. </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classpcl_1_1tracking_1_1_point_coherence.html#ab9ba7c2aa35b058c050c531877e7dbb2">pcl::tracking::PointCoherence&lt; PointInT &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;      <span class="comment">// convert color space from RGB to HSV</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      RGBValue source_rgb, target_rgb;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;      source_rgb.int_value = source.rgba;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;      target_rgb.int_value = target.rgba;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;      <span class="keywordtype">float</span> source_h, source_s, source_v, target_h, target_s, target_v;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;      RGB2HSV (source_rgb.Red, source_rgb.Blue, source_rgb.Green,</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;               source_h, source_s, source_v);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;      RGB2HSV (target_rgb.Red, target_rgb.Blue, target_rgb.Green,</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;               target_h, target_s, target_v);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;      <span class="comment">// hue value is in 0 ~ 2pi, but circulated.</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> _h_diff = fabsf (source_h - target_h);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;      <span class="comment">// Also need to compute distance other way around circle - but need to check which is closer to 0</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;      <span class="keywordtype">float</span> _h_diff2;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;      <span class="keywordflow">if</span> (source_h &lt; target_h)</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        _h_diff2 = fabsf (1.0f + source_h - target_h); <span class="comment">//Add 2pi to source, subtract target</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;      <span class="keywordflow">else</span> </div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        _h_diff2 = fabsf (1.0f + target_h - source_h); <span class="comment">//Add 2pi to target, subtract source</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;      </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;      <span class="keywordtype">float</span> h_diff;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;      <span class="comment">//Now we need to choose the smaller distance</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;      <span class="keywordflow">if</span> (_h_diff &lt; _h_diff2)</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        h_diff = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (<a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a62a2ceaf327d1d5b4c3410e1074c1fd4">h_weight_</a>) * _h_diff * _h_diff;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;      <span class="keywordflow">else</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        h_diff = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (<a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a62a2ceaf327d1d5b4c3410e1074c1fd4">h_weight_</a>) * _h_diff2 * _h_diff2;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> s_diff = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (<a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a8ea088c1142281709ec4d5dcf5f4bc0b">s_weight_</a>) * (source_s - target_s) * (source_s - target_s);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> v_diff = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (<a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#aa4bbd2883c7108c28cd2d04a45d2c5c0">v_weight_</a>) * (source_v - target_v) * (source_v - target_v);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> diff2 = h_diff + s_diff + v_diff;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;      </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;      <span class="keywordflow">return</span> (1.0 / (1.0 + <a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a7c7cba5259a5de96d1c0d468ef3a2199">weight_</a> * diff2));</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    }</div>
<div class="ttc" id="aclasspcl_1_1tracking_1_1_h_s_v_color_coherence_html_a62a2ceaf327d1d5b4c3410e1074c1fd4"><div class="ttname"><a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a62a2ceaf327d1d5b4c3410e1074c1fd4">pcl::tracking::HSVColorCoherence::h_weight_</a></div><div class="ttdeci">double h_weight_</div><div class="ttdoc">the hue weight (w_h)</div><div class="ttdef"><b>Definition:</b> hsv_color_coherence.h:86</div></div>
<div class="ttc" id="aclasspcl_1_1tracking_1_1_h_s_v_color_coherence_html_a7c7cba5259a5de96d1c0d468ef3a2199"><div class="ttname"><a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a7c7cba5259a5de96d1c0d468ef3a2199">pcl::tracking::HSVColorCoherence::weight_</a></div><div class="ttdeci">double weight_</div><div class="ttdoc">the weight of coherence (w)</div><div class="ttdef"><b>Definition:</b> hsv_color_coherence.h:83</div></div>
<div class="ttc" id="aclasspcl_1_1tracking_1_1_h_s_v_color_coherence_html_a8ea088c1142281709ec4d5dcf5f4bc0b"><div class="ttname"><a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a8ea088c1142281709ec4d5dcf5f4bc0b">pcl::tracking::HSVColorCoherence::s_weight_</a></div><div class="ttdeci">double s_weight_</div><div class="ttdoc">the saturation weight (w_s)</div><div class="ttdef"><b>Definition:</b> hsv_color_coherence.h:89</div></div>
<div class="ttc" id="aclasspcl_1_1tracking_1_1_h_s_v_color_coherence_html_aa4bbd2883c7108c28cd2d04a45d2c5c0"><div class="ttname"><a href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#aa4bbd2883c7108c28cd2d04a45d2c5c0">pcl::tracking::HSVColorCoherence::v_weight_</a></div><div class="ttdeci">double v_weight_</div><div class="ttdoc">the value weight (w_v)</div><div class="ttdef"><b>Definition:</b> hsv_color_coherence.h:92</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a2d3d63b1db80bedf61b4ba9a20eb0f19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d3d63b1db80bedf61b4ba9a20eb0f19">&#9670;&nbsp;</a></span>setHWeight()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointInT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html">pcl::tracking::HSVColorCoherence</a>&lt; PointInT &gt;::setHWeight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>weight</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set the hue weight (w_h) of coherence </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">weight</td><td>the hue weight (w_h) of coherence. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{ <a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a62a2ceaf327d1d5b4c3410e1074c1fd4">h_weight_</a> = weight; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a368e554e6d48530d4101a5e75cb14747"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a368e554e6d48530d4101a5e75cb14747">&#9670;&nbsp;</a></span>setSWeight()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointInT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html">pcl::tracking::HSVColorCoherence</a>&lt; PointInT &gt;::setSWeight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>weight</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set the saturation weight (w_s) of coherence </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">weight</td><td>the saturation weight (w_s) of coherence. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{ <a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a8ea088c1142281709ec4d5dcf5f4bc0b">s_weight_</a> = weight; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="ab22fb7cbb1512c7b8e2cac3249dd76b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab22fb7cbb1512c7b8e2cac3249dd76b5">&#9670;&nbsp;</a></span>setVWeight()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointInT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html">pcl::tracking::HSVColorCoherence</a>&lt; PointInT &gt;::setVWeight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>weight</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set the value weight (w_v) of coherence </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">weight</td><td>the value weight (w_v) of coherence. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;{ <a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#aa4bbd2883c7108c28cd2d04a45d2c5c0">v_weight_</a> = weight; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a280156248dca37d168901cdcc4812aa6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a280156248dca37d168901cdcc4812aa6">&#9670;&nbsp;</a></span>setWeight()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointInT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html">pcl::tracking::HSVColorCoherence</a>&lt; PointInT &gt;::setWeight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>weight</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set the weight of coherence </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">weight</td><td>the weight of coherence. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{ <a class="code" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html#a7c7cba5259a5de96d1c0d468ef3a2199">weight_</a> = weight; }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>tracking/include/pcl/tracking/<a class="el" href="hsv__color__coherence_8h_source.html">hsv_color_coherence.h</a></li>
<li>tracking/include/pcl/tracking/impl/<a class="el" href="hsv__color__coherence_8hpp_source.html">hsv_color_coherence.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>tracking</b></li><li class="navelem"><a class="el" href="classpcl_1_1tracking_1_1_h_s_v_color_coherence.html">HSVColorCoherence</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
